package com.sls.web.manager.game.pojo.ekhui;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * 资金平衡
 * @author Administrator
 *
 */
public class FundBalance implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id ;
	private Date accountDay ;					//账务日期
	private BigDecimal totalDepositMoney ;		//存款总金额
	private BigDecimal totalPayMoney ;			//支付总金额
	private BigDecimal totalRefundMoney ;		//退款总金额
	private BigDecimal startBalance ;			//账务初期余额
	private BigDecimal endBalance ;				//账务期末余额
	private String accountId ;					//账户id
	private String accountName ;				//账户名称
	private String traderId ;					//账户所属商户id
	private String traderName ;					//账户所属商户名称
	private Date createTime ;					//生成时间

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getAccountDay() {
		return accountDay;
	}
	public void setAccountDay(Date accountDay) {
		this.accountDay = accountDay;
	}
	public BigDecimal getTotalDepositMoney() {
		return totalDepositMoney;
	}
	public void setTotalDepositMoney(BigDecimal totalDepositMoney) {
		this.totalDepositMoney = totalDepositMoney;
	}
	public BigDecimal getTotalPayMoney() {
		return totalPayMoney;
	}
	public void setTotalPayMoney(BigDecimal totalPayMoney) {
		this.totalPayMoney = totalPayMoney;
	}
	public BigDecimal getTotalRefundMoney() {
		return totalRefundMoney;
	}
	public void setTotalRefundMoney(BigDecimal totalRefundMoney) {
		this.totalRefundMoney = totalRefundMoney;
	}
	public BigDecimal getStartBalance() {
		return startBalance;
	}
	public void setStartBalance(BigDecimal startBalance) {
		this.startBalance = startBalance;
	}
	public BigDecimal getEndBalance() {
		return endBalance;
	}
	public void setEndBalance(BigDecimal endBalance) {
		this.endBalance = endBalance;
	}
	public String getAccountId() {
		return accountId;
	}
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	public String getAccountName() {
		return accountName;
	}
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	public String getTraderId() {
		return traderId;
	}
	public void setTraderId(String traderId) {
		this.traderId = traderId;
	}
	public String getTraderName() {
		return traderName;
	}
	public void setTraderName(String traderName) {
		this.traderName = traderName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public boolean isBalance(){
		return totalDepositMoney.add(totalRefundMoney).add(startBalance).subtract(totalPayMoney).compareTo(endBalance) == 0 ;
	}
}
